import { UserInfo } from "./user"

// 探险列表查询参数
export interface TourSearch {
  pageNum: number,
  pageSize: number
  // 后续添加
  city?: string
  // 团队规模
  searchValue?: number | string | null
  // 冒险类型
  tags?: string,
  userId?: number,
  isHot?: number
}
// 探险列表
export interface TourList {
  abstracts: string
  advTime: string
  bacImg: string
  city: string
  country: string
  createBy: string | null
  createTime: string
  describes: string
  difficulty: string
  id: number
  peopleEndNum: number
  peopleStartNum: number
  picture: string | null
  place: string
  price: number
  remark: string | null
  time: string
  title: string
  trip: string
  updateBy: string | null
  updateTime: string | null
  user: UserInfo
  userId: number,
  tags: string | null
}
// 探险详情
export interface TourDetail {
  abstracts: string | null
  advTime: string | null
  bacImg: string | null
  city: string
  country: string
  createBy: string | null
  createTime: string | null
  describes: string | null
  difficulty: string
  id: number
  peopleEndNum: number
  peopleStartNum: number
  picture: string | null
  place: string | null
  price: number
  remark: string | null
  tags: string
  time: string
  title: string
  trip: string | null
  updateBy: string | null
  updateTime: string | null
  user: UserInfo
  userId: number
}
// 活动列表查询参数
export interface ActivitySearch {
  pageNum: number,
  pageSize: number,
  id?: number
  // 后续添加
  tags?: string,
  userId?: number,
  country?: string
  city?: string,
  isHot?: number
}
export interface ActivityList {
  city: string
  country: string
  createBy: string | null
  createTime: string | null
  describes: string
  id: number
  intro: string
  remark: string | null
  tags: string | null
  updateBy: string | null
  updateTime: string | null
  user: UserInfo
  userId: number
  imgUrl: string | null
  title: string
}
// 新增探险
export interface TourForm {
  abstracts: string;
  advTime: string;
  bacImg?: undefined | string;
  city: string;
  country: string;
  difficulty: string;
  peopleStartNum: number;
  peopleEndNum: number;
  picture?: undefined | string;
  place: string;
  price: number;
  remark?: string | undefined;
  tags: string;
  time: number;
  title: string;
  trip: string;
}
export interface ActivityForm {
  describes: string | null
  imgUrl: string | null
  intro: string
  tags: string
  title: string
  city: string,
  country: string
}
export interface OrderTour {
  advDate: string
  advId: number
  peopleNum: number
}
export interface TourOrderList {
  advDate: string
  advDetail: TourDetail
  advId: number
  createBy: null | string
  createTime: string
  id: number
  peopleNum: number
  remark: null | string
  status: number
  updateBy: string | null
  updateTime: null | string
  user: UserInfo
  userId: number
}